

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">

    <title></title>
    <link rel="shortcut icon" href="/img/favicon.ico">

    <!-- global stylesheets -->
    <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/font-icon-style.css">
    <link rel="stylesheet" href="/css/style.default.css" id="theme-stylesheet">

    <!-- Core stylesheets -->
    <link rel="stylesheet" href="/css/form.css">
</head>

<body>

<!--====================================================
                         MAIN NAVBAR
======================================================-->
<header class="header">
    <nav class="navbar navbar-expand-lg ">
        <div class="container-fluid ">
            <div class="navbar-holder d-flex align-items-center justify-content-between">
                <div class="navbar-header">
                    <a class="navbar-brand">
                        <div class="brand-text brand-big hidden-lg-down"><h3>发布活动</h3></div>
                        <div class="brand-text brand-small"><h3>发布活动</h3></div>
                    </a>
                    <a id="toggle-btn" href="#" class="menu-btn active">
                        <span></span>
                        <span></span>
                        <span></span>
                    </a>
                </div>
            </div>
        </div>
    </nav>
</header>

<!--====================================================
                        PAGE CONTENT
======================================================-->
<div class="page-content d-flex align-items-stretch">

    <!--***** SIDE NAVBAR *****-->
    <nav class="side-navbar">
        <div class="sidebar-header d-flex align-items-center">
            <div class="title">
                <h1 class="h4">欢迎：<span th:text="${session.username}"></span></h1>
            </div>
        </div>
        <hr>
        <!-- Sidebar Navidation Menus-->
        <ul class="list-unstyled">
            <li> <a th:href="@{/index}"><i class="icon-home"></i>首页</a></li>
            <li> <a th:href="@{/admin/userManagement}"><i class="fa icon-grid"></i>用户管理</a></li>
            <li class="active"> <a th:href="@{/admin/activityManagement}"> <i class="fa icon-interface-windows"></i>活动管理</a></li>
        </ul>
    </nav>

    <div class="content-inner chart-cont">

        <!--***** FORM LAYOUTS *****-->
        <div class="row">
            <div class="col-md-12">
                <!--***** PRODUCT INFO *****-->
                <div class="card form" id="form1">
                    <div class="card-header">
                        <h3><i class="fa fa-archive"></i>修改活动</h3>
                    </div>
                    <br>
                    <form action="/activity/updateActivity">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="name">活动标题</label>
                                    <input name="title" required type="text" th:value="${session.activity.title}" class="form-control" id="name" aria-describedby="emailHelp">
                                </div>
                                <div class="form-group">
                                    <label for="pro-qu">活动状态</label>
                                    <select name="status" required class="form-control" id="pro-qu">
                                        <option th:selected="${session.activity.activeStatus} == 2 ? true : false">敬请期待</option>
                                        <option th:selected="${session.activity.activeStatus} == 1 ? true : false">进行中</option>
                                        <option th:selected="${session.activity.activeStatus} == 0 ? true : false">已结束</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-6">

                                <div class="form-group has-success">
                                    <label for="description">活动描述</label>
                                    <textarea th:text="${session.activity.description}" name="description" required class="form-control" id="description" cols="30" rows="4"></textarea>
                                </div>
                            </div>
                        </div>
                        <button type="submit" class="btn btn-general btn-blue mr-2">完成</button>
                        <button type="reset" class="btn btn-general btn-white" onclick="location.href='/admin/activityManagement'">取消</button>
                    </form>
                </div>
            </div>

        </div>
    </div>

    <!--Global Javascript -->
    <script src="/js/jquery.min.js"></script>
    <script src="/js/popper/popper.min.js"></script>
    <script src="/js/tether.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/jquery.cookie.js"></script>
    <script src="/js/jquery.validate.min.js"></script>
    <script src="/js/chart.min.js"></script>
    <script src="/js/front.js"></script>

    <!--Core Javascript -->

</body>
</html>